package com.xunker.appointment.vo.hospital;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.mongodb.core.index.Indexed;

import java.util.List;

@Data
public class DepartmentVo {
    @ApiModelProperty(value = "科室编号")
    @Indexed(unique = true) //唯一索引
    private String departmentCode;

    @ApiModelProperty(value = "科室名称")
    private String departmentName;

    private List<DepartmentVo> children;

    public DepartmentVo() {
    }

    public DepartmentVo(String departmentCode, String departmentName, List<DepartmentVo> children) {
        this.departmentCode = departmentCode;
        this.departmentName = departmentName;
        this.children = children;
    }

    public DepartmentVo(String departmentCode, String departmentName) {
        this.departmentCode = departmentCode;
        this.departmentName = departmentName;
    }
}